home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
MCIWND.PAK
/
MCIWNDX.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
955b
|
41 lines
//----------------------------------------------------------------------------
// ObjectWindows
// Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
//
// Illustrates usage of TMciWnd class
//----------------------------------------------------------------------------
#include <owl/pch.h>
#include <owl/applicat.h>
#include <owl/framewin.h>
#include "mciwnd.h"
#include "mciwndx.h"
//
const int ID_MCIWND = 0x100;
//
// Class TSampleApp
// ~~~~~ ~~~~~~~~~~
class TSampleApp : public TApplication {
public:
void InitMainWindow();
};
//
//
//
void
TSampleApp::InitMainWindow()
{
SetMainWindow(new TFrameWindow(0, "Sample MCIWND using OWL",
new TMciWnd(0, ID_MCIWND, 0, 0, 0, 0, 0),
true));
GetMainWindow()->AssignMenu(IDM_APPMENU);
}
int
OwlMain(int /*argc*/, char* /*argv*/[])
{
return TSampleApp().Run();
}